import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Verification from '@/components/Verification'
import Acceptance from '@/components/Acceptance'
import Approval from '@/components/Approval'
import Printing from '@/components/Printing'
import End from '@/components/End'
import List from '@/components/List'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [{
            path: '*',
            redirect: '/'
        }, {
            path: '/',
            name: 'loginLink',
            component: Login
        },                
        {
            path: '/home',
            name: 'homeLink',
            component: Home,
            redirect:'/acceptance',
            children: [
                {
                    path: '/verification',
                    name: 'verificationLink',
                    component: Verification
                },
                {
                    path: '/acceptance',
                    name: 'acceptanceLink',
                    component: Acceptance
                },
                {
                    path: '/approval',
                    name: 'approvalLink',
                    component: Approval
                },
                {
                    path: '/printing',
                    name: 'printingLink',
                    component: Printing
                },
                {
                    path: '/end',
                    name: 'endLink',
                    component: End
                },
                {
                    path: '/list',
                    name: 'listLink',
                    component: List
                }
            ]
        },
    ]
})
